<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>图书管理系统-注册</title>
  <link rel="stylesheet" href="layui/css/layui.css" />
  <script src="layui/layui.js"></script>
</head>
<body>
  <div class="layui-container" style="max-width: 700px; margin-top: 100px;">
    <div class="layui-row">
      <h1 style="text-align: center; font-size: 22px; margin: 30px 0;">图书管理系统-注册</h1>
    </div>

    <form class="layui-form" action="register_check.php" method="post">
      <div class="layui-form-item">
        <label class="layui-form-label">用户</label>
        <div class="layui-input-block">
          <input type="text" class="layui-input" name="username" placeholder="请输入用户名" />
        </div>
      </div>

      <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block">
          <input type="password" class="layui-input" name="password1" placeholder="请输入密码" />
        </div>
      </div>

      <div class="layui-form-item">
        <label class="layui-form-label">确认密码</label>
        <div class="layui-input-block">
          <input type="password" class="layui-input" name="password2" placeholder="请再次输入密码" />
        </div>
      </div>

      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit lay-filter="formDemo">注册</button>
          <a class="layui-btn layui-btn-primary" href="login.php">登录</a>
        </div>
      </div>

    </form>
  </div>

  <script>
    layui.use('form', function() {
      var form = layui.form;
    })
  </script>
</body>
</html>